package com.ebelter.bpm.activitys;


import android.view.View;
import android.widget.TextView;

import com.ebelter.bpm.R;
import com.ebelter.bpm.models.update.Updater;
import com.ebelter.btcomlib.bases.activity.BaseActivity;
import com.ebelter.btcomlib.utils.AppUtils;
import com.ebelter.btcomlib.utils.log.LogUtils;

public class BPM_AboutActivity extends BaseActivity {

    public static final String TAG="BPM_AboutActivity";


    TextView topTitleTv;
    TextView currentVersion_tv;

    private Updater mUpdater;

    @Override
    protected int loadLayoutById() {
        return R.layout.activity_bpm_about;
    }

    @Override
    protected void initView() {
        FV();
    }

    private void FV() {
        topTitleTv=findViewById(R.id.top_title_tv);
        currentVersion_tv=findViewById(R.id.currentVersion_tv);
        mUpdater=new Updater();

    }

    @Override
    protected void initData() {
        topTitleTv.setText(R.string.str_About);


        currentVersion_tv.setText(AppUtils.getVerName(this));

    }

    //返回键被按下
    public void backClick(View view){
        LogUtils.i(TAG,"返回键被按下");
        finish();
    }


    //返回键被按下
    public void checkForUpdateClick(View view){
        LogUtils.i(TAG,"checkForUpdateClick");
        mUpdater.checkVersion(this,true,false);
    }


}
